
#页面类先导入基类
from base import Base
from selenium.webdriver.common.by import By
from time import sleep

#定义页面类，继承基类
class ShouYePeiZhi(Base):
    nanzhuang=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout[1]/android.widget.RelativeLayout/android.widget.FrameLayout[3]/android.widget.RelativeLayout/android.widget.HorizontalScrollView/android.widget.LinearLayout/android.widget.RelativeLayout[6]/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.TextView')
    dy = (By.XPATH, '//android.widget.TextView[@text="精选分类"]')
    def nanzhuangyewu(self):

        #点击男装
        self.find_ele(self.nanzhuang).click()
        sleep(3)










